home *** CD-ROM | disk | FTP | other *** search
/ ETO Development Tools 4 / ETO Development Tools 4.iso / Essentials / MacApp Documentation / MacApp.TECH$ Archives / 1990 / Nov 90 / MacApp.Tech$ 11⁄2⁄90 / 2268-Trouble Dismissing-Oct90 < prev    next >
Encoding:
Text File  |  1991-03-06  |  1.4 KB  |  31 lines  |  [TEXT/GEOL]

  1. Item    1099544                         29-Oct-90        11:18PST
  2.  
  3. From:   ENSIGN                          AnaMatrix, Jerry Sargent,PRT
  4.  
  5. To:     MACAPP.TECH$                    MacApp Technical
  6.  
  7. Sub:    Trouble Dismissing
  8.  
  9. I have a problem I hope someone can help me with.
  10.  
  11. I have a created a TDialogView in a window which displays field information
  12. from a database file. This TDialogView has a subview which is a TPicture
  13. labeled "Cancel". If I click the mouse on the Cancel picture, my
  14. TDialogView.DoChoice method calls the Cancel method which will delete the
  15. displayed record in the database. If there is a next record in the database the
  16. information is displayed. If there is not a next record, I want to close the
  17. window. I have been calling GetWindow.Close from whithin the Cancel method when
  18. this condition happens, but I get an error in the MacApp Debug Window called
  19. from FailNonObject telling me that the handle has been freed. I snooped arround
  20. and I think that when I clicked on the picture, the method TControl.TrackMouse
  21. was called, and it called TDialogView.DoChoice . When I close and free my
  22. window from whithin the Cancel method (which frees the Cancel Picture) the
  23. TControl.TrackMouse method can't finish because it's not a valid object. What
  24. can I do???
  25.  
  26. If you have any suggestions, please cc your response to ENSIGN as I am not
  27. recieving daily TECH$'s. Thanks,
  28.  
  29. Ken Auton
  30.  
  31.